package com.jt.tenant.activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import com.jt.tenant.R;
import com.jt.tenant.app.JTApplication;
import com.jt.tenant.dialog.TipDialog;

//import com.jt.tenant.conn.GetSoftwareUpdate;

/**
 * Created by Administrator on 2016/2/14.
 */
public class FreewayIntroduceActivity extends JTActivity implements View.OnClickListener {

    private TextView title_name;

    private TextView application;//立即开通

    @Override
    protected void onCreate(Bundle savedInstanceState) {

        super.onCreate(savedInstanceState);

        setContentView(R.layout.activity_freeway_introduce);

        initView();

    }

    private void initView() {

        (title_name = (TextView) findViewById(R.id.tv_title_name)).setText("高速服务");

        (application = (TextView)findViewById(R.id.tv_freeway_application)).setOnClickListener(this);

    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {

            case R.id.tv_freeway_application:

                if(JTApplication.jtPreferences.readFreeway().equals("1")){

                    TipDialog dialog = new TipDialog(context);

                    dialog.setTip("您已提交开通申请，请勿重复提交");

                    dialog.setType(0);

                    dialog.show();

                }else {

                    startActivity(new Intent(this, FillFreeWayInfoAcitity.class));

                }

                break;

        }

    }


}
